package com.wanbatv.wanba.jianshencao.activity;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.wanbatv.wanba.jianshencao.R;

/**
 * Created by ricardo on 2017/4/12.
 */
public class ShowView extends RelativeLayout{
    private AttributeSet attrs;
    private Context context;
    private ImageView pic;
    private ImageView cover;

    public ShowView(Context context) {
        super(context);
        this.context = context;
        LayoutInflater.from(context).inflate(R.layout.showview,this,true);
        pic = ((ImageView) findViewById(R.id.pic));
        cover = ((ImageView) findViewById(R.id.cover));
    }

    public ShowView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context = context;
        this.attrs=attrs;
        LayoutInflater.from(context).inflate(R.layout.showview,this,true);
        pic = ((ImageView) findViewById(R.id.pic));
        cover = ((ImageView) findViewById(R.id.cover));
    }

    public ShowView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.context = context;
    }
}
